﻿<!DOCTYPE html>
<html>
<head>
   <title>Creating a Test with SimWB</title>
   <meta name="generator" content="Help & Manual">
   <meta name="keywords" content="">
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <link type="text/css" href="default.css" rel="stylesheet">
   <link type="text/css" href="custom.css" rel="stylesheet">
   <script type="text/javascript" src="nsh.js"></script>
   
<!-- non-scrolling headers for CHM and browser-based help, local styles-->
<style TYPE="text/css" media="screen"> 
   <!-- 
   body {    
      margin:0; 
      padding:0; 
      overflow: auto; 
      background: #edede9; 
   } 
   #idheader { 
      width:100%; 
      height:auto; 
      padding: 0; 
      margin: 0;     
} 
    #idheaderbg  {
    background: #E40A00; 
}
#idheadernowrap  {
    white-space:nowrap; 
}
    ul {list-style-type: lower-roman}
   -->
   </style>
   
<style TYPE="text/css" MEDIA="print">
<!--
/* Hide navigation links and add space between header
     and text in the printed version. Not valid for eBooks. */
#idnav { display:none;	 }
.topichead { padding: 5px 5px 20px 5px; }
-->
</style>   
   <script type="text/javascript" src="jquery.js"></script>
   <script type="text/javascript" src="helpman_settings.js"></script>
   <script type="text/javascript" src="helpman_topicinit.js"></script>

   <script type="text/javascript">
     HMSyncTOC("index.html", "drvsim_inst_creating-a-test-with-simwb.htm");
   </script>
   <script type="text/javascript" src="highlight.js"></script>
   <script type="text/javascript">
     $(document).ready(function(){highlight();});
   </script>
</head>
<body>

<!--ZOOMSTOP-->

<div id="idheader" >
<div id="idheaderbg">
<table width="100%" border="0" cellspacing="0" cellpadding="0" 
       style="margin: 0px; color: #D7D7D7;">

  <tr valign="middle">
    <td align="left" valign="middle" class="topichead">
    <!--<div id="idheadernowrap">-->
    <p class="crumbs" id="idnav"><b>Navigation:</b>&nbsp;
   
   VI-DriveSim 19.2 on Linux &gt; VI-DriveSim 19.2 Configuration &gt; <a href="drivesim_simulation_workbench_configura.htm">Simulation WorkBench configuration</a>&nbsp;&gt;</p>
      <h1 class="p_Heading1" style="page-break-after: avoid;"><span class="f_Heading1">Creating a Test with SimWB</span></h1>

    <!--</div>-->
    </td>
    <td align="right" width="180" valign="middle" class="topichead" id="idnav">
    <div id="idheadernowrap">
    <a href="javascript: print();"
    		onmouseover="document.images.prntr.src='print_a.png'" 
        onmouseout="document.images.prntr.src='print_n.png'"
        ><img name="prntr" border="0" alt="Print this Topic" title="Print this Topic" src="print_n.png"
        ></a>&nbsp;&nbsp;
     <a href="drvsim_vidrivesim_rtdb_reference.htm"
        onmouseover="document.images.prev.src='back_a.png'" 
        onmouseout="document.images.prev.src='back_n.png'"
        ><img name=prev src="back_n.png" border=0 alt="Previous page"
        ></a><a href="drivesim_simulation_workbench_configura.htm"
        onmouseover="document.images.main.src='top_a.png'" 
        onmouseout="document.images.main.src='top_n.png'"><img name=main src="top_n.png" border=0 alt="Return to chapter overview"
        ></a><a href="drvsim_inst_creating-a-test-session-with-s.htm"
        onmouseover="document.images.next.src='next_a.png'" 
        onmouseout="document.images.next.src='next_n.png'"><img name=next src="next_n.png" border=0 alt="Next page"
        ></a>
    </div>
    </td>
  </tr>
</table>
</div>

<!-- The following code displays Expand All/Collapse All links  below the header in topics containing toggles -->
  

</div>  



<div id="idcontent"><div id="innerdiv"> 
<!--ZOOMRESTART-->
<p class="p_Normal">After the creation of a RTDB, a Test must be created. Every Test will contain the needed executables and user models (such as Simulink Models) to perform a simulation.</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal">In this case, the creation of a Test for a standard driving session on the simulator is shown:</p>
<p class="p_Normal">&nbsp;</p>
<p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span>Open SimworkBench, to create a new Test press the hammer icon to enter in the Test tab, and then the &quot;add new&quot; icon to add a new test. Then, type the name of the test, choose the RTDB and add the needed iodb by right clicking on the empty space. A window with the available Simulink Models and User Models will appear, it is now possible to select the needed ones.</p><p class="p_Normal" style="text-align: center;">&nbsp;</p>
<p class="p_Normal" style="text-align: center;"><img alt="drvsim_create_Test_02" width="864" height="486" style="margin:0px auto 0px auto;width:864px;height:486px;border:none" src="drvsim_create_test_02.png"/></p>
<p class="p_Normal" style="margin: 0px 0px 0px 38px;">&nbsp;</p>
<p class="p_Normal" style="margin: 0px 0px 0px 25px;">After that, the test tab will appear as follows:</p>
<p class="p_Normal" style="text-align: center; margin: 0px 0px 0px 38px;">&nbsp;</p>
<p class="p_Normal" style="text-align: center; margin: 0px 0px 0px 25px;"><img alt="drvsim_create_Test_03" width="864" height="486" style="margin:0px auto 0px auto;width:864px;height:486px;border:none" src="drvsim_create_test_03.png"/></p>
<p class="p_Normal" style="text-align: center; margin: 0px 0px 0px 38px;">&nbsp;</p>
<p class="p_Normal">For all the added blocks, it is possible to choose the CPU in which they will run and the frequency divider, which is equivalent to the solver time step for each executable. For the CPUs, CPU 0 and CPU 1 should not be selected, since they are used by the internal scheduler of SimWB.</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal"><span style="font-weight: bold; text-decoration: underline;">NOTE. The Freq Divider option in the Simulink Models and in the User Models is set to 1 for all the executables, apart for iodb_csv (freq divider = 10, which means 100 Hz for logging frequency) and for iodb_cueing (freq divider = 5, which means 200 Hz).</span></p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal">For a standard driving simulator session, the following executable are needed:</p>
<p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span style="font-weight: bold;">iodb_elab</span>: for ethercat comunication.</p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span style="font-weight: bold;">iodb_hwmap</span>: for hardware mapping of the cockpit (steering, pedals...) - for a Compact Simulator this is mandatory; for a Static Simulator or a DiM with a custom Cockpit, a custom simulink model is necessary for the hardware mapping.</p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span style="font-weight: bold;">vicrt</span>: VI-CarRealTime solver for Linux.</p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span style="font-weight: bold;">iodb_udp</span>: for the streaming to the graphic PCs; a dependency from vicrt executable is needed, just left click on the vicrt block and drag to the iodb_udp block. An arrow as in the image above will appear in the GUI.</p><p class="p_Normal">&nbsp;</p>
<p class="p_Normal">In case of a Dynamic Simulator, the two following iodb are also needed:</p>
<p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span style="font-weight: bold;">iodb_dim</span>: for comunication with Saginomiya PC.</p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span style="font-weight: bold;">iodb_cueing</span>: (Freq_Divider = 5 - 200Hz) for the management of platform movements.</p><p class="p_Normal">&nbsp;</p>
<p class="p_Normal">Additional executables:</p>
<p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span style="font-weight: bold;">iodb_csv</span>: (Freq_Divider = 10 - 100Hz) necessary for saving a csv file or streaming the simulation data to a 3rd party live telemetry software. If not selected, no data from the simulation will be saved. </p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span style="font-weight: bold;">iodb_bk</span>: necessary for a driving session with SimSound. If not present, the sound of VI-GraphSim can be used.</p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span style="font-weight: bold;">bk</span>: simulink model in parallel with SimSound, provided by VI-grade. </p><p class="p_Normal">&nbsp;</p>

<!--ZOOMSTOP-->
</div></div>
<script type="text/javascript"> 
<!-- 
var lastSlashPos = document.URL.lastIndexOf("/") >
document.URL.lastIndexOf("\\") ? document.URL.lastIndexOf("/") :
document.URL.lastIndexOf("\\");
if( document.URL.substring( lastSlashPos + 1, lastSlashPos + 4
).toLowerCase() != "~hh" )
{
    nsrInit();
}
--> 
</script> 
</body>
</html>
